
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author tandn
 */
public class CMIDlet extends MIDlet
{
    private CCanvas canvas = null;
    public CMIDlet()
    {
        canvas = new CCanvas();
    }

    protected void destroyApp(boolean unconditional) throws MIDletStateChangeException
    {
        
    }

    protected void pauseApp()
    {
        
    }

    protected void startApp() throws MIDletStateChangeException
    {
        Display.getDisplay(this).setCurrent(canvas);
    }
    
}

